package cn.springcloud.fix.gateway.service;

import cn.springcloud.fix.gateway.api.request.GatewayRouteAddRequest;
import cn.springcloud.fix.gateway.api.request.GatewayRouteUpdateRequest;
import cn.springcloud.fix.gateway.bo.RouteDefinitionBO;
import cn.springcloud.fix.gateway.dao.entity.GatewayRoute;

import java.util.List;

public interface RoutesService {

    /**
     * 返回组装后网关需要的路由信息
     */
    List<RouteDefinitionBO> getRouteDefinitions();

    List<GatewayRoute> getRoutes();

    GatewayRoute getGatewayRouteById(Long id);

    int delete(Long id);

    int addRoute(GatewayRouteAddRequest request);

    int updateRoute(GatewayRouteUpdateRequest request);
}
